package com.huawei.cloud.phone.management.common.validate;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = NotAllEmptyValidator.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface NotAllEmpty {
    String[] names() default {};

    String message() default "参数不能同时为空";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
